<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center contactUs_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub contactUs_fd0_0'>
          <view class='flex flex-wrap align-center contactUs_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  contactUs_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='contactUs_fd0_0_c1_c0'>{{$t('联系我们')}}</text>
          </view>
          <view class='flex flex-wrap align-center justify-end contactUs_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="text-lg text-666 text-weight-500 contactUs_flex_1">
        <!-- <image class='contactUs_fd1_0' mode="aspectFit" :src='STATIC_URL+"81.png"'></image> -->
        <view class="" style="line-height: 48rpx;">{{$t('有什么可以帮您的，')}}</view>
        <view class="" style="line-height: 48rpx;">{{$t('请联系我们')}}</view>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout contactUs_flex_2">
        <view class='flex flex-wrap align-center justify-between contactUs_fd2_0'>
          <view class='flex flex-direction flex-wrap align-start flex-sub'>
            <view class='flex flex-wrap align-center'>
              <text class='contactUs_fd2_0_c0_c0_c0'>{{$t('联系客堂')}}</text>
              <text class='contactUs_fd2_0_c0_c0_c1'>{{$t('9:00-18:00')}}</text>
            </view>
            <view class='flex flex-wrap align-center contactUs_fd2_0_c0_c1' @click.stop="call(dataInfo.kefu_mobile)">
              <text class='contactUs_fd2_0_c0_c1_c0'>{{dataInfo.kefu_mobile}}</text>
              <text class='contactUs_fd2_0_c0_c1_c1'>{{$t('拨打电话')}}</text>
            </view>
          </view>
          <image class='contactUs_fd2_0_c1' mode="aspectFit" :src='STATIC_URL+"43.png"'></image>
        </view>
        <view class='flex flex-wrap align-center justify-between contactUs_fd2_0'>
          <view class='flex flex-direction flex-wrap align-start flex-sub'>
            <view class='flex flex-wrap align-center'>
              <text class='contactUs_fd2_0_c0_c0_c0'>{{$t('客服微信')}}</text>
            </view>
            <view class='flex flex-wrap align-center contactUs_fd2_0_c0_c1'
              @click.stop="copyText(dataInfo.kefu_wechat)">
              <text class='contactUs_fd2_0_c0_c1_c0'>{{dataInfo.kefu_wechat}}</text>
              <text class='contactUs_fd2_0_c0_c1_c1'>{{$t('复制')}}</text>
            </view>
          </view>
          <image class='contactUs_fd2_0_c1' mode="aspectFit" :src='STATIC_URL+"44.png"'></image>
        </view>
        <view class='flex flex-wrap align-center justify-between contactUs_fd2_0'>
          <view class='flex flex-direction flex-wrap align-start flex-sub'>
            <view class='flex flex-wrap align-center'>
              <text class='contactUs_fd2_0_c0_c0_c0'>{{$t('客服QQ')}}</text>
            </view>
            <view class='flex flex-wrap align-center contactUs_fd2_0_c0_c1' @click.stop="copyText(dataInfo.kefu_qq)">
              <text class='contactUs_fd2_0_c0_c1_c0'>{{dataInfo.kefu_qq}}</text>
              <text class='contactUs_fd2_0_c0_c1_c1'>{{$t('复制')}}</text>
            </view>
          </view>
          <image class='contactUs_fd2_0_c1' mode="aspectFit" :src='STATIC_URL+"45.png"'></image>
        </view>
        <view class='flex flex-wrap align-center justify-between contactUs_fd2_0'>
          <view class='flex flex-direction flex-wrap align-start flex-sub'>
            <view class='flex flex-wrap align-center'>
              <text class='contactUs_fd2_0_c0_c0_c0'>{{$t('邮箱地址')}}</text>
            </view>
            <view class='flex flex-wrap align-center contactUs_fd2_0_c0_c1' @click.stop="copyText(dataInfo.kefu_email)">
              <text class='contactUs_fd2_0_c0_c1_c0'>{{dataInfo.kefu_email}}</text>
              <text class='contactUs_fd2_0_c0_c1_c1'>{{$t('复制')}}</text>
            </view>
          </view>
          <image class='contactUs_fd2_0_c1' mode="aspectFit" :src='STATIC_URL+"46.png"'></image>
        </view>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "dataInfo": {
          "kefu_mobile": "",
          "kefu_wechat": "",
          "kefu_qq": "",
          "kefu_email": ""
        }
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {
      this.getDatainfoFunc()
    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      // 点击打电话
      call(phoneNumber) {
        uni.showModal({
          title: global.i18n.t('用户联系方便及时联系用户'),
          confirmText: global.i18n.t('拨打'),
          success: res => {
            if (res.confirm) {
              uni.makePhoneCall({
                phoneNumber: phoneNumber,

              });
            }
          },
        })
      },
      //获取信息
      async getDatainfoFunc() {
        //请求方法
        //数据验证

        let datadataInfo = await this.$api.post(global.apiUrls.post65895eecd779b, {

        });

        if (datadataInfo.data.code != 1) {
          this.$message.info(datadataInfo.data.msg);
          return
        }
        let infodataInfo = datadataInfo.data;
        this.dataInfo = infodataInfo.data

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: url(image-path('42.png')) no-repeat;
    background-size: 100% auto;
  }

  .contactUs_flex_0 {
    background: rgba(245, 241, 236, 1);
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .contactUs_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .contactUs_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .contactUs_fd0_0_c0 {
    width: 120rpx;
  }

  .contactUs_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .contactUs_flex_1 {
    padding: 44rpx 0rpx 0rpx 32rpx;
  }

  .contactUs_fd1_0 {
    width: 380rpx;
    height: 112rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .contactUs_flex_2 {
    margin: 46rpx 0rpx 0rpx 0rpx;
    padding: 0rpx 24rpx 0rpx 24rpx;
  }

  .contactUs_fd2_0_c1 {
    width: 80rpx;
    height: 80rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .contactUs_fd2_0_c0_c1_c1 {
    color: #912F22;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 42rpx;
  }

  .contactUs_fd2_0_c0_c1_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 42rpx;
    margin: 0rpx 16rpx 0rpx 0rpx;
  }

  .contactUs_fd2_0_c0_c1 {
    margin: 16rpx 0rpx 0rpx 0rpx;
  }

  .contactUs_fd2_0_c0_c0_c1 {
    color: #BFBFBF;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .contactUs_fd2_0_c0_c0_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 42rpx;
    margin: 0rpx 16rpx 0rpx 0rpx;
  }

  .contactUs_fd2_0 {
    background: rgba(255, 255, 255, 1);
    border-radius: 40rpx;
    background-size: 100% auto;
    padding: 32rpx 40rpx 32rpx 32rpx;
    margin: 0rpx 0rpx 24rpx 0rpx;
  }
</style>
